#ifndef DELETEMESSAGE_H
#define DELETEMESSAGE_H

#include <QWidget>
#include "client.h"

namespace Ui {
class deleteMessage;
}

class deleteMessage : public QWidget
{
    Q_OBJECT

public:
    explicit deleteMessage(QWidget *parent = nullptr);
    void insert_msg(QString &msg, QString s1, QString s2);
    ~deleteMessage();

signals:
    void deleteSignal();
    void deleteFaceSignal(std::string);

private slots:
    void on_pushButton_find_clicked();

    void on_pushButton_delete_clicked();

    void sendDeleteSignal();

private:
    Ui::deleteMessage *ui;
    Json::Value root;
    Json::FastWriter writer;
    Json::Reader reader;
    char jsonstr[65536];
};

#endif // DELETEMESSAGE_H
